package com.eliza.databind.activity

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.eliza.databind.R
import com.eliza.databind.databinding.ActivityIncludeViewBinding
import com.eliza.databind.model.User


/*-*- coding:utf-8 -*-
 * @Author  : debi
 * @Time    : 3/24/22
 * @Software: Android Studio
 */
class IncludeActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_include_view)
        val dbv = DataBindingUtil.setContentView<ActivityIncludeViewBinding>(
            this,
            R.layout.activity_include_view
        )
        dbv.user = User("OOK", 12)

    }
}
